import request from "@/utils/request";
import cfg from "@/config/config";

const sys = {
  getColumns: param => {
    return request("get", cfg.apiUrl + "api/sys/columns", param);
  },

  testList: param => {
    return request("get", cfg.apiUrl + "api/test/list", param);
  },
  testList2: param => {
    return request("post", cfg.apiUrl + "api/test/list2", param);
  },

  getData(url, method, params) {
    return request(method, cfg.apiUrl + url, params);
  },

  /*页面标题*/
  setPageTitle(name){
      $("#search_select").html(name);
  },
  /*登录人排班组*/
  getScheduleGroup:() => {
    return request("get", cfg.apiUrl + "api/schedule/group?role=0");
  },

};

export default sys;
